package com.yanqingshan.platform;

import cn.hutool.extra.spring.SpringUtil;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 项目启动类
 *
 * @author yanqs
 * @since 2023-05-11
 */
@Slf4j
@SpringBootApplication
@MapperScan("com.yanqingshan.platform.module.**.mapper")
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        String serverPort = SpringUtil.getProperty("server.port");
        log.info("后端服务启动成功");
        log.info("swagger doc:http://localhost:{}/doc.html", serverPort);
    }
}
